﻿using System.Collections.Generic;

namespace Micro.Extensions.Data
{
    public interface ICrudRepository<T> where T : class
    {
        void Delete(T entity);
        T Get(object id, bool readMaster = false);
        void Insert(IEnumerable<T> entities);
        void Insert(T entity);
        void Update(T entity);
    }
}